//
//  GGsdvsdfvgCollectionViewCell.m
//  tantan
//
//  Created by SQHH on 2017/12/20.
//  Copyright © 2017年 SQHH. All rights reserved.
//

#import "GGsdvsdfvgCollectionViewCell.h"

@interface GGsdvsdfvgCollectionViewCell () <
UITableViewDataSource,
UITableViewDelegate
>

/// dsadFaf数据源
@property (nonatomic, strong) NSMutableArray *data;

/// dFD
@property (nonatomic, strong) UITableView *dsadFaf;

/// FDA
@property (nonatomic, strong) UISwitch *DCFASDF;

@end

@implementation GGsdvsdfvgCollectionViewCell

#pragma mark - # Delegate
//MARK: UITableViewDataSource
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
	return 1;
}

- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
	return self.data.count;
}

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
	return nil;
}

//MARK: UITableViewDelegate
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
	
}

#pragma mark - # Event Response
- (void)DCFASDFValueChanged:(UISwitch *)sender {
	
}

- (id)initWithFrame:(CGRect)frame {
	if (self = [super initWithFrame:frame]) {
		[self.contentView addSubview:self.dsadFaf];
		[self.contentView addSubview:self.DCFASDF];
	}
	return self;
}

#pragma mark - # Getter
- (NSMutableArray *)data {
	if (!_data) {
		_data = [[NSMutableArray alloc] init];
	}
	return _data;
}

- (UITableView *)dsadFaf {
	if (!_dsadFaf) {
		_dsadFaf = [[UITableView alloc] init];
		[_dsadFaf setMultipleTouchEnabled:YES];
		[_dsadFaf setAlpha:0.5];
		[_dsadFaf setClipsToBounds:YES];
		[_dsadFaf setPagingEnabled:YES];
		[_dsadFaf setShowsVerticalScrollIndicator:YES];
		[_dsadFaf setShowsHorizontalScrollIndicator:YES];
		[_dsadFaf setDelegate:self];
		[_dsadFaf setRowHeight:6];
		[_dsadFaf setSectionHeaderHeight:5];
		[_dsadFaf setSectionFooterHeight:12];
		[_dsadFaf setAllowsMultipleSelection:YES];
		[_dsadFaf setEditing:YES];
		[_dsadFaf setDataSource:self];
	}
	return _dsadFaf;
}

- (UISwitch *)DCFASDF {
	if (!_DCFASDF) {
		_DCFASDF = [[UISwitch alloc] init];
		[_DCFASDF.layer setBorderWidth:12];
		[_DCFASDF addTarget:self action:@selector(DCFASDFValueChanged:) forControlEvents:UIControlEventValueChanged];
	}
	return _DCFASDF;
}

@end
